var i;
Object.defineProperty(exports, "__esModule", {
  value: true
});
var ResKeeper = require("AA_ResKeeper");
var Excel = require("AA_Excel");
var GameGlobalVariable = require("AA_GameGlobalVariable");
var BuffMag = require("AA_BuffMag");
var UI_MosterLogic = require("AA_UI_MosterLogic");
var UI_BulletMove = require("AA_UI_BulletMove");
var _decorator = cc._decorator;
var _ccclass = _decorator.ccclass;
_decorator.property;

var _def_UI_BulletMoveCollider = function (e) {
  function _creator() {
    return null !== e && e.apply(this, arguments) || this;
  }
  __extends(_creator, e);
  _creator.prototype.onCollisionEnter = function (e, t) {
    GameGlobalVariable.GameGlobalVariable.playHitLiulian();
    var o = t.node.parent.getComponent(UI_BulletMove.default);
    var n = e.node.getComponent(UI_MosterLogic.default);
    if (!n.isDie) {
      BuffMag.BuffMgr.mosterBeHit(n, o.attackfang);
      n.beAttack(o);
      o.isChaoJi || o.hideBullet();
      var i = Excel.Excel.shuiguobuff(o.attackfang.sgtianfuid);
      if (11 == i.buffefftype) {
        var a = Excel.Excel.shuiguoguaiwu(n.mosterId);
        !o.isChaoJi && Math.random() < i.probability / 100 * a.resistance && n.backTui(i.value[0]);
      }
    }
  };
  return __decorate([_ccclass], _creator);
}(ResKeeper.default);
exports.default = _def_UI_BulletMoveCollider;